package com.lin.spring.service.impl;

import lombok.Data;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Service;

/**
 * @ClassName BeanNameAwareService
 * @Description
 * @Author lin
 * @Date 2022/4/5 上午1:44
 * @Version V1.0
 */
@Data
@Service
public class BeanNameAwareService implements BeanNameAware {
    private String name;
    @Override
    public void setBeanName(String s) {
        this.name = s;
    }
}
